#ifndef WELDCONDITIONDIALOG_H
#define WELDCONDITIONDIALOG_H

#include <QDialog>
#include "../CommunicateDelegate/communicatenormaldelegate.h"

namespace Ui {
class WeldConditionDialog;
}

class WeldConditionDialog : public QDialog
{
    Q_OBJECT

public:
    explicit WeldConditionDialog(int styleId,CommunicateNormalDelegate *communicateNormalIn,QWidget *parent = 0);
    ~WeldConditionDialog();

    void initialDisplayStyle(int styleId);

signals:

    /**
     * @brief showErrorMsgBox 显示信息弹窗内容
     * @param msg
     */
    void showErrorMsgBox(QString msg);

public slots:
    void showView_slot();

private slots:
    void on_returnBtn_clicked();

    void on_saveBtn_clicked();
    void on_comboBox_currentIndexChanged(int index);

private:
    void updateConditionSHow(int index);
    void updateUiShow(WeldCondition weldCondition);

private:
    Ui::WeldConditionDialog *ui;
    CommunicateNormalDelegate *communicateNormalDelegate;

};

#endif // WELDCONDITIONDIALOG_H
